package com.wxxymaker.edu.model.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Column;
import io.github.biezhi.anima.annotation.Ignore;
import io.github.biezhi.anima.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @AUTHOR soft
 * @DATE 2018/9/3 17:11
 * @DESCRIBE 练习用户作答
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "practice_response")
public class PracticeResponse extends Model {
    private Integer id;

    private Integer  userId;     // 作答用户
    @Ignore
    private User     user;

    private Integer  practiceId; // 所属习题
    @Ignore
    private Practice practice;

    @Column(name = "option_")
    private String   option;     // 如果是选择题就有选项
    private String   result;     // 如果是问答题就是文字答案
    @Column(name = "right_")
    private Integer  right;      // 是否回答正确
    private String   time;       // 作答时间
}
